## 模板1
import os

env = None
Enable_Clang = False
# 1.编译器
if Enable_Clang and os.system("which clang") == 0:
    # clang编译器
    env = Environment(tools=["default", "clang"])
    env["CC"] = ["clang"]
    env["CXX"] = ["clang++"]
else:
    env = Environment()

env["PROGSUFFIX"] = ".out"            # 可执行后缀.out
env["CCFLAGS"] = " -ggdb3 -O0 -Wall"  # gdb 调试开关
src_list = [
    "1_rvalue-references-move-semantics_右值引用_移动赋值.cc",
    "5_copy_constructor拷贝构造.cc",
    "6_copy_constructor_无拷贝构造_1次构造_2次析构_异常现象.cc",
    "21_move_右值引用.cc",
    "22_move_右值引用实现.cc",
]
for src in src_list:
    env.Program(Split(src))
